package com.anbinh.doctor.fragment.account;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.Toast;

import com.anbinh.doctor.R;
import com.anbinh.doctor.adapter.DoctorManagerAdapter;
import com.anbinh.doctor.adapter.LichkhamAdapter;
import com.anbinh.doctor.adapter.MessagesAdapter;
import com.anbinh.doctor.adapter.LichhenAdapter;
import com.anbinh.doctor.model.ItemTime;

public class FragmentDoctorMannager extends Fragment {
	private static FragmentDoctorMannager fragment = null;
	private View mView;

	public static FragmentDoctorMannager newInstance() {
		if (fragment == null) {
			fragment = new FragmentDoctorMannager();
		}
		return fragment;
	}

	@Override
	public void onAttach(Activity activity) {
		// TODO Auto-generated method stub
		super.onAttach(activity);
	}

	@Override
	public void onResume() {
		super.onResume();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mView = inflater.inflate(R.layout.fragment_message, null);
		return mView;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		ListView mGridView = (ListView) mView.findViewById(R.id.listView1);
		List<ItemTime> mList = new ArrayList<ItemTime>();
		for (int i = 0; i < 32; i++) {
			ItemTime item = new ItemTime();
			item.setStatus(0);
			item.setTime("10:15");
			mList.add(item);
		}
	
	//	mGridView.setAdapter(adapter);
	}

}
